#include "dominion.h"  
#include "dominion_helpers.h"  
#include "rngs.h"  
#include <stdio.h>  
#include <math.h>  
#include <stdlib.h>  
#include <assert.h>


void testKingdomCards(int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8, int k9, int k10)  {
  int i, j;
  int *k = malloc(10 * sizeof(int));
  k = kingdomCards(k1, k2, k3, k4, k5, k6, k7, k8, k9, k10);
  
  assert(k[0] = k1);
  assert(k[1] = k2);
  assert(k[2] = k3);
  assert(k[3] = k4);
  assert(k[4] = k5);
  assert(k[5] = k6);
  assert(k[6] = k7);
  assert(k[7] = k8);
  assert(k[8] = k9);
  assert(k[9] = k10); 

  for(i=0; i<9; i++) {
    for(j=i+1; j<10;j++) {
      assert( k[i] != k[j] );
    }
  }

}


int main(int argc, char *argv[]) {
  int k[10];
  int i;

  for(i=0; i<10; i++) {
    k[i] = i+1;
  }

  testKingdomCards(k[0], k[1], k[2], k[3], k[4], k[5], k[6], k[7], k[8], k[9]);


  printf("All tests successful!\n");

  return 0;
}